/*
 * LoginController.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.onesalt.web.api.response.Response;

/**
 * 登录认证
 *
 * @author kiri
 * @date 2015年3月22日
 * @version 1.0
 */
@RestController
@RequestMapping("/auth")
public class AuthController extends AbstractController {

	@RequestMapping(value = "/login", method = RequestMethod.POST)
	private Response login(@RequestParam(value = "username", required = false) String username,
			@RequestParam(value = "password", required = false) String password) {
		getLogger().debug("username = " + username + ", password = " + password);
		return Response.SUCCESS;
	}
}
